# -*- coding: utf-8 -*-
from wineAreas import RegionArea, regionClassGenerator, FranceArea
from qtcommon import tr

# define this region classes
BordeauxArea , BordeauxAppellation, BordeauxGroup, newgroup = regionClassGenerator("Bordeaux", tr("Bordeaux") , FranceArea)


                                                                        
# fill the specifics to this region. we put it in a function so it is invoked only when needed.
def createRegion():
    BordeauxArea._cepages = [
    ["Merlot","Cabernet Sauvignon","Cabernet Franc","Malbec"],
    [u"Sémillon","Muscadelle","Sauvignon"],
    []
    ]                   
    r = BordeauxArea()
    r.addAppellations( [
        u"Bordeaux",
        u"Bordeaux supérieur",
        u"Bordeaux-haut-benauge",
        u"Bordeaux-côtes-de-francs",
        u"Bordeaux-clairet",
        
        newgroup(u"Médoc"),
        u"Médoc",
        u"Haut-Médoc",
        u"Saint-Estèphe",
        u"Pauillac",
        u"Saint-Julien",
        u"Listrac-Médoc",
        u"Moulis-en-Médoc",
        u"Margaux",

        newgroup("Graves"),
        u"Pessac-Léognan",
        u"Graves",
        u"Graves-supérieures",
        u"Cérons",

        newgroup("Sauternais"),
        u"Barsac",
        u"Sauternes",

        newgroup("Entre-2-mers"),
        u"Entre-Deux-Mers",
        u"Premières-côtes-de-Bordeaux",
        u"Côtes-de-Bordeaux-Saint-Macaire",
        u"Cadillac",
        u"Loupiac",
        u"Sainte-Croix-du-Mont",
        u"Cadillac-côtes-de-Bordeaux",
        u"Bordeaux-Haut-Benauge",
        u"Graves-de-Vayres",
        u"Sainte-foy-Bordeaux",

        newgroup("Libournais"),
        u"Fronsac",
        u"Canon-Fronsac",
        u"Pomerol",
        u"Lalande-de-Pomerol",
        u"Saint-Émilion",
        u"Saint-Émilion Grand Cru",
        u"Montagne-Saint-Émilion",
        u"Saint-Georges-Saint-Émilion",
        u"Lussac-Saint-Émilion",
        u"Puisseguin-Saint-Émilion",
        u"Castillon-Côtes-de-Bordeaux",
        u"Francs-Côtes-de-Bordeaux",

        newgroup(tr("Blayais and Bourgeais")),
        u"Blaye",
        u"Côtes-de-Blaye",
        u"Côtes-de-Bourg",
        u"Blaye-côtes-de-Bordeaux",
        ]
                       )
    return r
